package com.yuexunit.mobilenurse.module.BloodSugarQuery.adapter;

import android.widget.AbsListView;

import com.yuexunit.mobilenurse.R;
import com.yuexunit.mobilenurse.module.BloodManage.bean.Blood;
import com.yuexunit.mobilenurse.module.BloodSugarQuery.bean.BloodSugarBean;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by Administrator on 2018/1/12 0012.
 */

public class BloodSugarAdapter extends KJAdapter<BloodSugarBean> {
    public BloodSugarAdapter(AbsListView view, Collection<BloodSugarBean> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder helper, BloodSugarBean item, boolean isScrolling, int position) {
        super.convert(helper, item, isScrolling, position);
        helper.setText(R.id.item_blood_sugar_time,item.getTime());
        helper.setText(R.id.item_blood_sugar_count,item.getData());
    }
}
